﻿using Microsoft.AspNetCore.Builder;

namespace Ec.NETCoreFramework.Common.ValidateSign
{
    public static class MiddlewareHelpers
    {
        /// <summary>
        /// 自定义错误收集中间件
        /// </summary>
        /// <param name="app"></param>
        /// <returns></returns>
        public static IApplicationBuilder UseNETCoreFramework(this IApplicationBuilder app)
        {
            return app.UseMiddleware<FrameworkValidate>();
        }
    }
}
